#!/bin/bash

cd /mnt/wwwroot/dnmp-dev/compose/

echo "卸载 nginx..."
docker-compose -f nginx-web.yml down
echo "nginx 卸载完成！"
echo ""

echo "卸载 php..."
docker-compose -f php-web.yml down
echo "php 卸载完成！"

echo "卸载 mysql..."
docker-compose -f mysql-web.yml down
echo "mysql 卸载完成！"

echo "卸载 redis..."
docker-compose -f redis-web.yml down
echo "redis 卸载完成！"

echo "卸载 memcached..."
docker-compose -f mem-web.yml down
echo "memcached 卸载完成！"

echo ""
service docker restart # 为了保险起见，卸载完成后重启一下docker服务
